import 'dart:isolate';
import 'dart:io';
///isolate spawnUri方式
void main(List<String> args,SendPort sendPort) {
  print("isolate_spawnUri_task.dart begin");

  print("接收到相关参数：$args");
  sendPort.send(["开始执行异步操作",0]);
  sleep(Duration(seconds: 2));
  sendPort.send(["加载数据中...",1]);
  sleep(Duration(seconds: 2));
  sendPort.send(["异步任务完成",2]);
  sleep(Duration(seconds: 2));

  print("isolate_spawnUri_task.dart end");
}
